import request from '@/utils/request'

// 查询签约记录分页
export function getBsCustomerRecordPage(query) {
  return request({
    url: '/bsCustomerRecord/getPage',
    method: 'get',
    params: query
  })
}

// 查询签约记录列表
export function getBsCustomerRecordList(query) {
  return request({
    url: '/bsCustomerRecord/getList',
    method: 'get',
    params: query
  })
}

// 通过主键查询签约记录详细
export function getBsCustomerRecordById(query) {
  return request({
    url: '/bsCustomerRecord/getById',
    method: 'get',
    params: query
  })
}

// 新增或修改签约记录信息
export function addOrUpdateBsCustomerRecord(data) {
  return request({
    url: '/bsCustomerRecord/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除签约记录记录
export function delBsCustomerRecord(ids) {
  return request({
    url: '/bsCustomerRecord/deleteByIds/'+ids,
    method: 'delete',
  })
}

// 导出签约记录数据
export function exportBsCustomerRecord(query) {
  return request({
    url: '/bsCustomerRecord/export',
    method: 'get',
    params: query
  })
}